<?php use_helper('Number') ?>
<?php /* @var $customer Customer */ ?>
<?php /* @var $cart Receipt */?>
<?php /* @var $item ReceiptItem */?>
<?php echo __('Hello');?>, <?php echo $customer->getName()?>, <?php echo $customer->getSurname()?>!
<?php if(!empty($message)): ?>
    <?php echo __($message);?></br>
<?php endif; ?>
<?php if(!empty($arProducts)): ?>
    <table width="100%" class="cart" cellpadding="2" cellspacing="1">
                <tr>
                    <th><?php echo __('name') ?></th>
                    <th><?php echo __('Price') ?></th>
                </tr>
            <?php $i = 1; foreach ($arProducts as $item): $odd = fmod(++$i, 2) ?>
                <tr class="sf_admin_row_<?php echo $odd ?>">
                    <td align="right"><?php echo $item->getName() ?></td>
                    <td align="right"><?php echo format_currency($item->getPriceByCurrencyCode($sf_user->getAttribute('currency', 'EUR')), $sf_user->getAttribute('currency', 'EUR')) ?></td>
                </tr>
            <?php endforeach; ?>
                <tr>
                    <th></th>
                    <th align="right" nowrap="nowrap">
                        <?php echo __('Total') ?>:&nbsp;&nbsp;<?php echo $cart->getItemsQnt(); ?>&nbsp;&nbsp;&nbsp;
                        <?php echo format_currency($cart->getPriceByCurrencyCode($sf_user->getAttribute('currency', 'EUR')), $sf_user->getAttribute('currency', 'EUR')) ?></th>
                
            </tr>
            <tr>
                <th></th>
                <th align="right" nowrap="nowrap">
                    <?php echo __('Shipping') ?>:&nbsp;&nbsp;&nbsp;
                    <?php echo format_currency($cart->getShippingPriceMinor($sf_user->getAttribute('currency', 'EUR')), $sf_user->getAttribute('currency', 'EUR')) ?></th>
                
            </tr>
            </table>
<?php endif; ?>